cssimageradial: Handle "partial" gradients correctly
authorBenjamin Otte <otte@redhat.com>
Mon, 19 Dec 2016 22:30:02 +0000 (23:30 +0100)
committerBenjamin Otte <otte@redhat.com>
Tue, 20 Dec 2016 17:01:12 +0000 (18:01 +0100)
commit1b553478f6e0a0fa5c333409cb81f603aff0e8a3
tree6ee27da4f36d35166f56d4f550c5bf6189a0183f
parent6c20ddc119b1491bdcb28216a60d79f71d094019
cssimageradial: Handle "partial" gradients correctly

When the first/last color stop is not at 0%/100%, we need to start the
repeating at their offsets and not at 0%/100%.

Attached reftest demonstrates the problem.
gtk/gtkcssimageradial.c
testsuite/reftests/Makefile.am
testsuite/reftests/repeating-radial-gradient-at-beginning.css [new file with mode: 0644]
testsuite/reftests/repeating-radial-gradient-at-beginning.ref.ui [new file with mode: 0644]
testsuite/reftests/repeating-radial-gradient-at-beginning.ui [new file with mode: 0644]